package com.example.springbootdemo;

import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * Account type
 *
 * @author 92942
 */
public enum AccountType implements IEnum {
    ADMIN(0, "管理员，平台", "ROLE_ADMIN"),
    USER(1, "普通用户", "ROLE_USER"),
    AGENT(2, "代理商，合伙人", "ROLE_AGENT"),
    STORE(3, "商家", "ROLE_STORE"),
    WORKER(4, "师傅", "ROLE_WORKER"),
    OTHER(5, "其他"),
    LEADER(6,"工长","ROLE_LEADER"),
    PCSTORE(7,"PC端","ROLE_PCSTORE"),
    MAKER(8,"创客","ROLE_MAKER");

    private Integer value;
    private String desc;
    private String authority;

    AccountType(Integer value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    AccountType(Integer value, final String desc, String authority) {
        this.value = value;
        this.desc = desc;
        this.authority = authority;
    }

    public String getAuthority() {
        return authority;
    }


    @Override
    public Integer getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }

}
